<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 逻辑与 a&&b 若a为真 返回b a为假返回a 
        console.log(2 && 3)//返回3
        // 逻辑或 a||b 若a为真 返回a a为假返回b
        console.log(2 > 1 || 3 < 2)// true
        console.log(2 > 1 && 3 < 2)//flase
    </script>
</body>

</html>